<template>
  <div class="user-change-res">
    <vx-common-res
      :title-bar-arr="titleBarArr"
      title="修改成功"
      :res-detail="res"
      show-serial-num
      @confirm="$router.replace({ path: '/system/user' })"
    >
    </vx-common-res>
  </div>
</template>

<script>
export default {
  name: 'user-change-res',
  data() {
    return {
      titleBarArr: ['用户修改录入', '用户修改确认', '用户修改结果'],
      res: this.getData().res || {},
    };
  },
  /**
   * @description 离开页面清除数据
   */
  beforeDestroy() {
    this.clearData();
  },
};
</script>
